import 'package:basic_ui/common_widgets/my_small_widget.dart';
import 'package:basic_ui/constants/app_sizes.dart';
import 'package:flutter/material.dart';

class SettingsScreen extends StatelessWidget {
  const SettingsScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('设置'),
      ),
      body: SingleChildScrollView(
        padding: const EdgeInsets.all(Sizes.p16),
        child: Column(
          children: [
            ListTile(
              title: const Text('更换手机号'),
              trailing: MySmallWidgets.listTileTrailingIcon(),
              onTap: () {
                // 处理更换手机号的逻辑
              },
            ),
            ListTile(
              title: const Text('修改支付密码'),
              trailing: MySmallWidgets.listTileTrailingIcon(),
              onTap: () {
                // 处理修改支付密码的逻辑
              },
            ),
            const Divider(),
            ListTile(
              title: const Text('清除缓存'),
              trailing: const Text('16M'),
              onTap: () {
                // 处理清除缓存的逻辑
              },
            ),
            ListTile(
              title: const Text('个人信息收集清单'),
              trailing: MySmallWidgets.listTileTrailingIcon(),
              onTap: () {
                // 处理查看个人信息收集清单的逻辑
              },
            ),
            ListTile(
              title: const Text('第三方信息共享清单'),
              trailing: MySmallWidgets.listTileTrailingIcon(),
              onTap: () {
                // 处理查看第三方信息共享清单的逻辑
              },
            ),
            const Divider(),
            ListTile(
              title: const Text(
                '注销账户',
                style: TextStyle(color: Colors.red),
              ),
              onTap: () {},
            ),
          ],
        ),
      ),
    );
  }
}
